<?php

use yii\db\Migration;

/**
 * Class m180130_085341_alter_columns_to_project_investigation_stakeholder
 */
class m180130_085341_add_columns_to_project_pre_evaluation_other_value extends Migration
{
    /**
     * @inheritdoc
     */
    public function safeUp()
    {
        $this->addColumn('project_pre_evaluation_other_value','mortgage_other_seal_state',$this->string());//项目id 菲抵押物情况
        $this->addColumn('project_pre_evaluation_other_value','mortgage_other_seal_order',$this->string());//项目id 菲抵押物排序
    }

    /**
     * @inheritdoc
     */
    public function safeDown()
    {
        echo "m180130_085341_alter_columns_to_project_investigation_stakeholder cannot be reverted.\n";

        return false;
    }

    /*
    // Use up()/down() to run migration code without a transaction.
    public function up()
    {

    }

    public function down()
    {
        echo "m180130_085341_alter_columns_to_project_investigation_stakeholder cannot be reverted.\n";

        return false;
    }
    */
}
